﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NUnit.Framework;
using ProDivingAdmin2salmon14;

namespace Test_ProDivingAdmin2salmon14
{
    [TestFixture]
    class TestFileManager
    {
        [Test]
        public void TestLoadDivers()
        {
            Contest c = new Contest(true, 18, 10,7);
            List<Diver> diverList = new List<Diver>(FileManager.LoadDivers("InternationalFemaleDiving10m.txt"));
            Assert.IsNotEmpty(diverList);
        }

        [Test]
        public void TestLoadDives()
        {
            FileManager.LoadDives("DivingScores_and_Names2salmon14.txt");
            Assert.IsNotEmpty(FileManager.diveList);

        }

        [Test]
        public void TestLoadJudges()
        {
            List<Judge> judgeList = new List<Judge>(FileManager.LoadJudges("JudgeInfo.txt"));
            Assert.IsNotEmpty(judgeList);
        }
    }
}
